import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("fa_cms_channel_admin",{schema:"fastadmin" } )
@Index("admin_id",["admin_id","channel_id",],{unique:true})
export class fa_cms_channel_admin {

    @PrimaryGeneratedColumn({
        type:"int", 
        name:"id"
        })
    id:number;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"admin_id"
        })
    admin_id:number;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"channel_id"
        })
    channel_id:number;
        
}
